package com.it.base.arithmetic.base.dm.chain.filters;
import com.it.base.arithmetic.base.dm.chain.PreparationList;
import com.it.base.arithmetic.base.dm.chain.FilterChain;
import com.it.base.arithmetic.base.dm.chain.StudyPrepareFilter;

public class WashHairFilter implements StudyPrepareFilter {
    //具体需要做的事情
    @Override
    public void doFilter(PreparationList preparationList, FilterChain filterChain) {
        if (preparationList.isHaveBreakfast()) {
            System.out.println("吃早餐");
        }
        filterChain.doFilter(preparationList, filterChain);
    }
}
